package plus.easydo.starter.mybatis.plus.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import plus.easydo.core.result.DataResult;

import java.util.List;


/**
 * @author laoyu
 * @version 1.0
 */
@Data
public class MPDataResult extends DataResult<List<?>> {

    @ApiModelProperty(value = "当前页数")
    private Integer pageNum;
    @ApiModelProperty(value = "当前页数")
    private Integer current;
    @ApiModelProperty(value = "每页显示条数")
    private Integer pageSize;
    @ApiModelProperty(value = "开始条数")
    private Integer startRow;
    @ApiModelProperty(value = "结束条数")
    private Integer endRow;
    @ApiModelProperty(value = "每页显示条数")
    private Integer pages;
    @ApiModelProperty(value = "当前记录数")
    private long count;
    @ApiModelProperty(value = "总记录数")
    private long total;
    @ApiModelProperty(value = "返回数据")
    protected List<?> data;
    @ApiModelProperty(value = "消息状态码")
    private int code;
    @ApiModelProperty(value = "消息内容")
    private String msg;
    @ApiModelProperty(value = "成功标识")
    private Boolean success;
    @ApiModelProperty(value = "异常状态码")
    protected int errorCode;
    @ApiModelProperty(value = "异常消息内容")
    protected String errorMessage;



}
